package github.sf.fw.tools.db;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractDataSourceMeta implements DataSourceMeta {

    protected final static Logger log = LoggerFactory.getLogger(AbstractDataSourceMeta.class);

    protected final DSProperty dsProperty;
    protected QueryFilter<String> dbFilter;

    public AbstractDataSourceMeta(DSProperty dsProperty) {
        this.dsProperty = dsProperty;
    }

    public AbstractDataSourceMeta(DSProperty dsProperty, QueryFilter<String> dbFilter) {
        this.dsProperty = dsProperty;
        this.dbFilter = dbFilter;
    }

    @Override
    public void setDbFilter(QueryFilter<String> dbFilter) {
        this.dbFilter = dbFilter;
    }

    @Override
    public boolean checkTable(String tableName) {
        return false;
    }
}
